/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package game;

import framework.GObject;
import java.awt.Color;
import java.awt.Graphics2D;

/**
 *
 * @author bryan
 */
public class Hole extends GObject{
   protected int width;
   protected int height;
   
   public Hole(int x, int y) {
      this._x = x;
      this._y = y;
   }
   
   public Hole(int x, int y, int width, int height) {
      this.loadImage("images/molerat.png");
      this._x = x;
      this._y = y;
      this.width = width;
      this.height = height;
   }
   
   public void renderB(Graphics2D g2) {
      g2.setColor(Color.black);
      g2.fillArc(this._x, this._y, this.width, this.height, 180, 180);
   }
   
   public void renderT(Graphics2D g2) {
      g2.setColor(Color.black);
      g2.fillArc(this._x, this._y, this.width, this.height, 0, 180);
   }
   
   public void renderBottom(Graphics2D g2) {
      g2.setColor(Color.black);
      g2.fillArc(this._x, this._y, 70, 50, 180, 180);
   }
   
   public void renderTop(Graphics2D g2) {
      g2.setColor(Color.black);
      g2.fillArc(this._x, this._y, 70, 50, 0, 180);
   }
}
